package com.example.myfinalhomework;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.text.Spannable;

import androidx.annotation.Nullable;

public class DBHelper extends SQLiteOpenHelper {
    private static final int VERSION=1;
    private static final String DB_NAME="final.db";
    public static final String TB_NAME="finally";
    public DBHelper(@Nullable Context context){
        super(context,DB_NAME,null,VERSION);
    }
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE " + TB_NAME + "(ID INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, num TEXT, remark TEXT)");
    }
    public void onUpgrade(SQLiteDatabase sqLiteDatabase,int i,int i1){

    }
}
